package com.yc.think.brain;

import cn.hutool.crypto.SecureUtil;

import java.util.List;

/**
 * author: yc
 * description: ${description}
 * date: 2021/7/13 16:12
 */
public class Node {
    private String key;
    private String value;//实际值
    /**
     * 感普（可自动拓展）
     * 1234 2458 2367
     * axxxx 情绪
     * bxxxx 大小
     * cxxxx 特殊性
     *
     * ALFADSI
     */
    private String attr;
    private List<Link> links;

    public Node() {
    }

    public Node(String value) {
        this.value = value;
        this.key = SecureUtil.md5(value);
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public List<Link> getLinks() {
        return links;
    }

    public void setLinks(List<Link> links) {
        this.links = links;
    }

    public String getAttr() {
        return attr;
    }

    public void setAttr(String attr) {
        this.attr = attr;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Node{" +
                "key=" + key +
                ", value='" + value + '\'' +
                '}';
    }
}
